﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace easyui.Controllers.Authorization
{
    [Route("Authorization")]
    [ApiController]
    public class UserManagerController : ControllerBase
    {
        [HttpGet]
        [Route("User")]
        public JsonResult dgData(int num)
        {
            List<DataModel> datas = new List<DataModel>();
            for (var i = 0; i < num; i++)
            {
                DataModel data = new DataModel() { itemid = i };
                datas.Add(data);
            }
            return new JsonResult(datas);
        }

        public class DataModel
        {
            public int itemid { get; set; }
        }
    }
}